/**
 * @CreateTime:2020年6月5日下午1:14:10;
 * @User:Administrator;
 * @ProjectName:ybj;
 * @ClassName:Person;
 * @Author:YangBingJie;
 * @QQ:2284180138;
 * @Email:2284180138@qq.com;
 **/
package xyz.yangbingjie.java.entity;
public class Person implements Comparable<Person>{
	private String id;
	private String name;
	private String sex;
	
	public Person() {//无参构造
		super();
	}
	
	public Person(String id, String name, String sex) {//有参构造
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}

	@Override
	public String toString() {
		return "Person [id=" + id + ", name=" + name + ", sex=" + sex + "]";
	}
	@Override
	public int compareTo(Person o) {
		return this.id.compareTo(o.getId());
	}
}